.class Les/c90$i;
.super Lcom/estrongs/android/ui/dialog/q;
.source "FileShareServer.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/c90;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "i"
.end annotation


# instance fields
.field a:Les/o70$d;

.field b:Z

.field c:Landroid/widget/ImageView;

.field d:Landroid/widget/CheckBox;

.field e:Landroid/widget/TextView;

.field f:Landroid/widget/TextView;

.field g:Landroid/widget/TextView;

.field final synthetic h:Les/c90;


# direct methods
.method public constructor <init>(Les/c90;Landroid/content/Context;Les/o70$d;)V
    .locals 6

    .line 1
    iput-object p1, p0, Les/c90$i;->h:Les/c90;

    .line 2
    invoke-direct {p0, p2}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    const/4 p1, 0x0

    .line 3
    iput-boolean p1, p0, Les/c90$i;->b:Z

    .line 4
    iput-object p3, p0, Les/c90$i;->a:Les/o70$d;

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p2

    invoke-static {p2}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const p3, 0x7f0c00cf

    const/4 v0, 0x0

    invoke-virtual {p2, p3, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 6
    invoke-virtual {p0, p2}, Lcom/estrongs/android/ui/dialog/q;->setContentView(Landroid/view/View;)V

    const p3, 0x7f0907bc

    .line 7
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/TextView;

    iput-object p3, p0, Les/c90$i;->e:Landroid/widget/TextView;

    const p3, 0x7f090824

    .line 8
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/TextView;

    iput-object p3, p0, Les/c90$i;->f:Landroid/widget/TextView;

    const p3, 0x7f090ad9

    .line 9
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/TextView;

    iput-object p3, p0, Les/c90$i;->g:Landroid/widget/TextView;

    const p3, 0x7f09051a

    .line 10
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/ImageView;

    iput-object p3, p0, Les/c90$i;->c:Landroid/widget/ImageView;

    const p3, 0x7f09088e

    .line 11
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/CheckBox;

    iput-object p2, p0, Les/c90$i;->d:Landroid/widget/CheckBox;

    .line 12
    iget-object p2, p0, Les/c90$i;->e:Landroid/widget/TextView;

    iget-object p3, p0, Les/c90$i;->a:Les/o70$d;

    iget-object p3, p3, Les/o70$d;->f:Ljava/lang/String;

    invoke-virtual {p2, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 13
    iget-object p2, p0, Les/c90$i;->a:Les/o70$d;

    iget p3, p2, Les/o70$d;->c:I

    const/4 v0, 0x1

    if-le p3, v0, :cond_0

    .line 14
    iget-object p2, p0, Les/c90$i;->f:Landroid/widget/TextView;

    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v0, p0, Les/c90$i;->a:Les/o70$d;

    iget-object v0, v0, Les/o70$d;->h:Ljava/lang/String;

    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, "..."

    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p2, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 15
    :cond_0
    iget-object p3, p0, Les/c90$i;->f:Landroid/widget/TextView;

    iget-object p2, p2, Les/o70$d;->h:Ljava/lang/String;

    invoke-virtual {p3, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 16
    :goto_0
    iget-object p2, p0, Les/c90$i;->g:Landroid/widget/TextView;

    iget-object p3, p0, Les/c90$i;->a:Les/o70$d;

    iget-wide v0, p3, Les/o70$d;->e:J

    invoke-static {v0, v1}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p2, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 17
    iget-object p2, p0, Les/c90$i;->a:Les/o70$d;

    iget-object p3, p2, Les/o70$d;->l:[B

    const/16 v0, 0x8

    const/4 v1, 0x3

    if-eqz p3, :cond_2

    .line 18
    iget p3, p2, Les/o70$d;->m:I

    iget p2, p2, Les/o70$d;->n:I

    mul-int p3, p3, p2

    new-array p2, p3, [I

    :goto_1
    if-ge p1, p3, :cond_1

    .line 19
    iget-object v2, p0, Les/c90$i;->a:Les/o70$d;

    iget-object v2, v2, Les/o70$d;->l:[B

    mul-int/lit8 v3, p1, 0x4

    aget-byte v4, v2, v3

    shl-int/lit8 v4, v4, 0x18

    add-int/lit8 v5, v3, 0x1

    aget-byte v5, v2, v5

    shl-int/lit8 v5, v5, 0x10

    or-int/2addr v4, v5

    add-int/lit8 v5, v3, 0x2

    aget-byte v5, v2, v5

    shl-int/2addr v5, v0

    or-int/2addr v4, v5

    add-int/2addr v3, v1

    aget-byte v2, v2, v3

    or-int/2addr v2, v4

    aput v2, p2, p1

    add-int/lit8 p1, p1, 0x1

    goto :goto_1

    .line 20
    :cond_1
    iget-object p1, p0, Les/c90$i;->a:Les/o70$d;

    iget p3, p1, Les/o70$d;->m:I

    iget p1, p1, Les/o70$d;->n:I

    sget-object v1, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {p2, p3, p1, v1}, Landroid/graphics/Bitmap;->createBitmap([IIILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object p1

    .line 21
    iget-object p2, p0, Les/c90$i;->c:Landroid/widget/ImageView;

    invoke-virtual {p2, p1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    goto :goto_2

    .line 22
    :cond_2
    iget p1, p2, Les/o70$d;->b:I

    const/4 p3, 0x2

    if-ne p1, p3, :cond_3

    .line 23
    iget-object p1, p0, Les/c90$i;->c:Landroid/widget/ImageView;

    const p2, 0x7f0803d1

    invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    :cond_3
    if-ne p1, v1, :cond_4

    .line 24
    iget-object p1, p0, Les/c90$i;->c:Landroid/widget/ImageView;

    const p2, 0x7f080764

    invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 25
    :cond_4
    iget-object p1, p0, Les/c90$i;->c:Landroid/widget/ImageView;

    iget-object p2, p2, Les/o70$d;->h:Ljava/lang/String;

    invoke-static {p2}, Lcom/estrongs/android/util/n0;->b(Ljava/lang/String;)I

    move-result p2

    invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Les/rj;->b(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 26
    :goto_2
    iget-object p1, p0, Les/c90$i;->d:Landroid/widget/CheckBox;

    invoke-virtual {p1, v0}, Landroid/widget/CheckBox;->setVisibility(I)V

    return-void
.end method


# virtual methods
.method public dismiss()V
    .locals 5

    .line 1
    iget-boolean v0, p0, Les/c90$i;->b:Z

    if-nez v0, :cond_0

    .line 2
    iget-object v0, p0, Les/c90$i;->h:Les/c90;

    iget-object v1, p0, Les/c90$i;->a:Les/o70$d;

    iget-object v1, v1, Les/o70$d;->j:Ljava/net/Socket;

    const/16 v2, 0x194

    const/4 v3, 0x1

    const-string v4, "Not found"

    invoke-static {v0, v1, v2, v4, v3}, Les/c90;->a(Les/c90;Ljava/net/Socket;ILjava/lang/String;Z)V

    .line 3
    :cond_0
    invoke-super {p0}, Lcom/estrongs/android/ui/dialog/q;->dismiss()V

    return-void
.end method

.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 5

    const/4 v0, -0x1

    if-ne p2, v0, :cond_4

    .line 1
    iget-object p2, p0, Les/c90$i;->a:Les/o70$d;

    iget-object v0, p2, Les/o70$d;->a:Ljava/lang/String;

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eqz v0, :cond_2

    .line 2
    iget-object p2, p2, Les/o70$d;->h:Ljava/lang/String;

    invoke-static {p2}, Lcom/estrongs/android/util/n0;->k(Ljava/lang/String;)Z

    move-result p2

    if-nez p2, :cond_0

    iget-object p2, p0, Les/c90$i;->a:Les/o70$d;

    iget-object p2, p2, Les/o70$d;->h:Ljava/lang/String;

    .line 3
    invoke-static {p2}, Lcom/estrongs/android/util/n0;->Q(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_1

    .line 4
    :cond_0
    new-instance p2, Landroid/content/Intent;

    const-string v0, "android.intent.action.VIEW"

    invoke-direct {p2, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const/high16 v0, 0x4000000

    .line 5
    invoke-virtual {p2, v0}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    const-string v0, "oneshot"

    .line 6
    invoke-virtual {p2, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string v0, "configchange"

    .line 7
    invoke-virtual {p2, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 8
    iget-object v0, p0, Les/c90$i;->a:Les/o70$d;

    iget-object v0, v0, Les/o70$d;->a:Ljava/lang/String;

    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    .line 9
    iget-object v1, p0, Les/c90$i;->a:Les/o70$d;

    iget-object v1, v1, Les/o70$d;->h:Ljava/lang/String;

    invoke-static {v1}, Lcom/estrongs/android/util/n0;->b(Ljava/lang/String;)I

    move-result v1

    invoke-static {v1}, Lcom/estrongs/android/util/n0;->b(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v0, v1}, Landroid/content/Intent;->setDataAndType(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent;

    .line 10
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/esclasses/ESActivity;->z()Landroid/app/Activity;

    move-result-object v0

    iget-object v1, p0, Les/c90$i;->a:Les/o70$d;

    iget-object v1, v1, Les/o70$d;->a:Ljava/lang/String;

    invoke-static {v0, p2, v1}, Lcom/estrongs/android/pop/view/utils/b;->a(Landroid/app/Activity;Landroid/content/Intent;Ljava/lang/String;)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p2

    .line 11
    invoke-virtual {p2}, Landroid/content/ActivityNotFoundException;->printStackTrace()V

    .line 12
    :cond_1
    :goto_0
    iput-boolean v2, p0, Les/c90$i;->b:Z

    .line 13
    iget-object p2, p0, Les/c90$i;->h:Les/c90;

    iget-object v0, p0, Les/c90$i;->a:Les/o70$d;

    iget-object v0, v0, Les/o70$d;->j:Ljava/net/Socket;

    const/16 v1, 0xc8

    const-string v3, "OK"

    invoke-static {p2, v0, v1, v3, v2}, Les/c90;->a(Les/c90;Ljava/net/Socket;ILjava/lang/String;Z)V

    goto :goto_1

    .line 14
    :cond_2
    iget-object v0, p0, Les/c90$i;->d:Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->isShown()Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Les/c90$i;->d:Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v0

    if-eqz v0, :cond_3

    const/4 v1, 0x1

    :cond_3
    iput-boolean v1, p2, Les/o70$d;->k:Z

    .line 15
    invoke-static {}, Lcom/estrongs/android/pop/esclasses/ESActivity;->z()Landroid/app/Activity;

    move-result-object p2

    if-eqz p2, :cond_4

    .line 16
    iget-object p2, p0, Les/c90$i;->h:Les/c90;

    invoke-static {}, Lcom/estrongs/android/pop/esclasses/ESActivity;->z()Landroid/app/Activity;

    move-result-object v0

    const v1, 0x7f080741

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v3

    const v4, 0x7f11003a

    invoke-virtual {v3, v4}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Les/c90$i;->a:Les/o70$d;

    invoke-static {p2, v0, v1, v3, v4}, Les/c90;->a(Les/c90;Landroid/app/Activity;ILjava/lang/String;Les/o70$d;)V

    .line 17
    iput-boolean v2, p0, Les/c90$i;->b:Z

    .line 18
    :cond_4
    :goto_1
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    return-void
.end method
